<?php
class Subcategorymanager_Data_Updatesubcategorymetavalues implements Subcategorymanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null){
        $variables['query'] = "UPDATE subcategory_meta_values SET subcategory_meta_values.subcategory_meta_title='".$variables['post']['subcategory_meta_title']."', subcategory_meta_values.subcategory_meta_keywords='".$variables['post']['subcategory_meta_keywords']."', subcategory_meta_values.subcategory_meta_description='".$variables['post']['subcategory_meta_description']."' WHERE subcategory_meta_values.subcategory_name='".$variables['post']['subcategory_name']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }
    
}
